package win

import (
	. "go-demo/designpattern/factory/abstractfactory/ui/factory"
)

// windows 工厂
type WinFactory struct {
}

// CreateButton 创建windows按钮
func (w *WinFactory) CreateButton() Button {
	return &WinButton{}
}

// CreateTextField 创建windows文本框
func (w *WinFactory) CreateTextField() TextField {
	return &WinTextField{}
}

// CreateComboBox 创建windows下拉框
func (w *WinFactory) CreateComboBox() ComboBox {
	return &WinComboBox{}
}
